package com.xzj.spring.process;

import com.sun.istack.internal.Nullable;

/**
 * @ProjectName: SpringDemo
 * @Package: com.xzj
 * @ClassName: BeanPostProcessor
 * @Author: xzj
 * @Description: bean的增强器
 * @Date: 2022/7/11 10:15
 * @Version: 1.0
 */
public interface BeanPostProcessor {

    @Nullable
    default Object postProcessBeforeInitialization(Object bean, String beanName) throws RuntimeException {
        return bean;
    }

    @Nullable
    default Object postProcessAfterInitialization(Object bean, String beanName) throws RuntimeException {
        return bean;
    }
}
